import request from '@/utils/request'

// 查询收费数据汇总测试列表
export function listTollDataSummaryTest(query) {
  return request({
    url: '/functiontest/TollDataSummaryTest/list',
    method: 'get',
    params: query
  })
}

// 查询收费数据汇总测试详细
export function getTollDataSummaryTest(id) {
  return request({
    url: '/functiontest/TollDataSummaryTest/' + id,
    method: 'get'
  })
}

// 新增收费数据汇总测试
export function addTollDataSummaryTest(data) {
  return request({
    url: '/functiontest/TollDataSummaryTest',
    method: 'post',
    data: data
  })
}

// 修改收费数据汇总测试
export function updateTollDataSummaryTest(data) {
  return request({
    url: '/functiontest/TollDataSummaryTest',
    method: 'put',
    data: data
  })
}

// 删除收费数据汇总测试
export function delTollDataSummaryTest(id) {
  return request({
    url: '/functiontest/TollDataSummaryTest/' + id,
    method: 'delete'
  })
}

// 导出收费数据汇总测试
export function exportTollDataSummaryTest(query) {
  return request({
    url: '/functiontest/TollDataSummaryTest/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}

// 导入收费数据汇总测试数据
export function importTollDataSummaryTest(data) {
  return request({
    url: '/functiontest/TollDataSummaryTest/importData',
    method: 'post',
    data: data
  })
}

// 下载导入模板
export function importTemplateTollDataSummaryTest() {
  return request({
    url: '/functiontest/TollDataSummaryTest/importTemplate',
    method: 'get',
    responseType: 'blob'
  })
}

// 实测单位批量审核
export function fieldAuditTollDataSummaryTestBatch() {
  return request({
    url: '/functiontest/TollDataSummaryTest/fieldAudit/batch',
    method: 'post'
  })
}

// 业主批量审核
export function ownerAuditTollDataSummaryTestBatch(data) {
  return request({
    url: '/functiontest/TollDataSummaryTest/ownerAudit/batch',
    method: 'post',
    data: data
  })
}

// 中心批量审核
export function centerAuditTollDataSummaryTestBatch() {
  return request({
    url: '/functiontest/TollDataSummaryTest/centerAudit/batch',
    method: 'post'
  })
}
